import request from '@/Utils/request.js'

// 获得城市列表数据
export function getCityList (level) {
  return request({
    url: '/area/city',
    params: {
      level
    }
  })
}

// 获得热门城市列表数据
export function getHotCityList () {
  return request({
    url: '/area/hot'
  })
}

/**
 * 小区关键词查询
 * @param {*} params {name,id}
 */
export function getAreaCommunity (params) {
  return request({
    url: '/area/community',
    params
  })
}
